package cookinmaddy.database.spod;

/**
 * ...
 * @author Yog
 */
 
 import php.Lib;

class DBVersion extends php.db.Object
{
	public static var CURRENTVERSION : Int = 1;
	public var ver : Int;
	static var TABLE_NAME = "version";

	public static var DROP_REQUEST = "drop table " + TABLE_NAME + ";";
	public static var CREATION_REQUEST_V1 = "create table " + TABLE_NAME + " " +
	"( " +
		"ver int" +
	");";	
	public static var INITIALIZATION_REQUEST_V1 = "insert into " + TABLE_NAME + " " +
	"(" +
		"ver" +
	") VALUES (" + 
		"1" + 
	");";	
	public static var manager = new php.db.Manager<DBVersion>(DBVersion);
}